﻿using Rsd.Dudu.ModelProvider;
using Rsd.Faith.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rsd.Faith.Models
{
    /// <summary>
    /// 
    /// </summary>
    [Table("biz_资金使用申请表", "biz__zi_jin_shi_yong_shen_qing_dt_biao", "id")]
    [Serializable]
    public class UsingZiJinShiYongShenQingDtBiaoModel : Rsd.Faith.Core.ModelBase
    {
        /// <summary>
        /// 申请单号
        /// </summary>
        [TableIndex(TableIndexType.Unique, TableIndexUsing.BTree)]
        [StringType("shen_qing_dan_hao", "申请单号", 20, 20)]
        [DisplayName("申请单号")]
        public string ShenQingDanHao { get; set; }
        /// <summary>
        /// 所属期
        /// </summary>
        [StringType("suo_shu_qi", "所属期", 21, 20)]
        [DisplayName("所属期")]
        public string SuoShuQi { get; set; }
        /// <summary>
        /// 申请单位
        /// </summary>
        [StringType("shen_qing_dan_wei", "申请单位", 22, 100)]
        [DisplayName("申请单位")]
        public string ShenQingDanWei { get; set; }

        /// <summary>
        /// 申请单位法人代表
        /// </summary>
        [StringType("shen_qing_dan_wei_fa_ren_dai_biao", "申请单位法人代表", 24, 50)]
        [DisplayName("申请单位法人代表")]
        public string ShenQingDanWeiFaRenDaiBiao { get; set; }

        /// <summary>
        /// 申请金额
        /// </summary>
        [NumericType("shen_qing_jin_e", "申请金额", 26, 20, 2)]
        [DisplayName("申请金额")]
        public decimal ShenQingJinE { get; set; }

        /// <summary>
        /// 申请金额大写
        /// </summary>
        [StringType("shen_qing_jin_e_da_xie", "申请金额大写", 28, 150)]
        [DisplayName("申请金额大写")]
        public string ShenQingJinEDaXie { get; set; }

        /// <summary>
        /// 申请日期
        /// </summary>
        [DateTimeType("shen_qing_ri_qi", "申请日期", 30)]
        [DisplayName("申请日期")]
        public DateTime ShenQingRiQi { get; set; }

        /// <summary>
        /// 申请事项
        /// </summary>
        [StringType("shen_qing_shi_xiang", "申请事项", 32, 250)]
        [DisplayName("申请事项")]
        public string ShenQingShiXiang { get; set; }

        /// <summary>
        /// 小区编号
        /// </summary>
        [StringType("xiao_qu_bian_hao", "小区编号", 34, 20)]
        [DisplayName("小区编号")]
        public string XiaoQuBianHao { get; set; }

        /// <summary>
        ///  楼栋号 (空表示 整个小区)
        /// </summary>
        [StringType("lou_dong_hao", "楼栋号", 36, 100)]
        [DisplayName("楼栋号")]
        public string LouDongHao { get; set; }
         
        /// <summary>
        /// 维修范围
        /// </summary>
        [StringType("wei_xiu_fan_wei", "维修范围", 38, 300)]
        [DisplayName("维修范围")]
        public string WeiXiuFanWei { get; set; }

        /// <summary>
        /// 收款银行
        /// </summary>
        [StringType("shou_kuan_yin_hang", "收款银行", 40, 250)]
        [DisplayName("收款银行")]
        public string ShouKuanYinHang { get; set; }

        /// <summary>
        /// 收款银行账号
        /// </summary>
        [StringType("shou_kuan_yin_hang_zhang_hao", "收款银行账号", 42, 50)]
        [DisplayName("收款银行账号")]
        public string ShouKuanYinHangZhangHao { get; set; }

        /// <summary>
        /// 拨付方式
        /// </summary>
        [StringType("bo_fu_fang_shi", "拨付方式", 46, 50)]
        [DisplayName("拨付方式")]
        public BoFuFangShi BoFuFangShi { get; set; }

        /// <summary>
        /// 划拨编号
        /// </summary>
        [StringType("hua_bo_bian_hao", "划拨编号", 48, 20)]
        [DisplayName("划拨编号")]
        public string HuaBoBianHao { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [StringType("zhuang_tai", " 状态", 50, 50, "未划拨")]
        [DisplayName("状态")]
        public ZiJinShenQinZhuangTai ZhuangTai { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public UsingZiJinShiYongShenQingDtBiaoModel()
        { }
    }
}
